<?php
/**
 * wrapper class for role table
 * @package naanal
 */
class ClsWRole extends ClsWrapper
{       
        /**
         * name
         * @package naanal
         * @var string 
         */
  	protected $name=null;
        /**
         * user_id
         * @package naanal
         * @var integer 
         */
  	protected $user_id=null;
        /**
         * pdo
         * @package naanal
         * @var string 
         */
  	protected $pdo=null;
    /**
     * @package naanal
     */
	function __construct()
	{	
            parent::__construct();	
	}
        /**
         * get_id
         * @package naanal
         * @return integer
         */
	function get_id()
	{
		return $this->id;
	}
        /**
         * set_id
         * @package naanal
         * @param integer $id
         */
	function set_id($id)
	{
		$this->id=$id;
	}
	/**
         * get_name
         * @package naanal
         * @return integer
         */
  	public function get_name()
  	{
  		return $this->name;
  	}
        /**
         * set_name
         * @package naanal
         * @param string $name
         */
  	public function set_name($name)
  	{
  		$this->name=$name;
  	}
  	/**
         * get_user_id
         * @package naanal
         * @return string
         */
  	public function get_user_id()
  	{
  		return $this->user_id;
  	}
        /**
         * set_user_id
         * @package naanal
         * @param integer $user_id
         */
  	public function set_user_id($user_id)
  	{
  		$this->user_id=$user_id;
  	}
        /**
         * getArray
         * @package naanal
         * @return array
         */
	function getArray()
	{
		$arr=null;
		$arr["id"]=$this->get_id();
  		$arr["name"]=$this->get_name();
  		$arr["user_id"]=$this->user_id;
		return $arr;
	}
        /**
         * setArray
         * @param array $arr
         * @return array
         */
	function setArray($arr)
	{
		if(isset($arr["id"])) $this->set_id($arr["id"]);
  		if(isset($arr["name"])) $this->set_name($arr["name"]);
  		if(isset($arr["user_id"])) $this->set_name($arr["user_id"]);
  		
		return $arr;		
	}
 
}	
?>